<template>
  <div class="news">
    <h2>每日要闻</h2>
    <!-- <slot a="哈哈" b="嘿嘿" c="巴拉巴拉" :newsList="newsList"></slot> -->
    <slot name="s1" a="哈哈" b="嘿嘿" c="巴拉巴拉" :newsList="newsList"></slot>
  </div>
</template>

<script>
  export default {
    name: "News",
    data() {
      return {
        newsList:[
          {id:'asdsrdtdy01',title:'《震惊！这10种食物吃了就死》'},
          {id:'asdsrdtdy02',title:'《最新消息！这5个规定改了，立即生效》'},
          {id:'asdsrdtdy03',title:'《如何一夜暴富》'},
        ]
      }
    },
  };
</script>

<style scoped>
.news {
  background-color: skyblue;
  /* padding: 10px; */
  border-radius: 10px;
  box-shadow: 0 0 10px black;
  width: 380px;
  height: 400px;
}
h2 {
  background-color: orange;
  text-align: center;
}
li{
  font-size: 16px;
}
img,video {
  width: 100%;
}
</style>